
vi /etc/sysctl.conf
vm.max_map_count = 262144

# docker es
docker run --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -d elasticsearch:5.0.0

# insert index
curl -X PUT 'localhost:9200/weather'


docker exec -it es /bin/bash

docker run -d --name es_admin -p 9100:9100 mobz/elasticsearch-head:5